package Chapter07.Homework.H20211022;

public class Teacher {
    String name;
    int age;
    int first;//教龄
    String gender;

    public Teacher() {
    }

    public Teacher(String name, int age, int first, String gender) {
        this.name = name;
        this.age = age;
        this.first = first;
        this.gender = gender;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getFirst() {
        return first;
    }

    public void setFirst(int first) {
        this.first = first;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void selfIntroduce(){//自我介绍
        System.out.println("我叫"+this.name+",年龄"+this.age+",教龄"+this.first+",性别"+this.gender);
    }
}
